don't set gpsbabel::XmlStreamWriter codec in mapfactor (#733)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Wed, 13 Oct 2021 13:17:09 +0000 (07:17 -0600)
committerGitHub <noreply@github.com>
Wed, 13 Oct 2021 13:17:09 +0000 (07:17 -0600)
We use utf-8 by default as of #671.

mapfactor.cc

index 4611eae9828ba3a6fea519479e7cc6cdffe713d9..6aaf062264ea268f9c1b6200c52e1e0bd6fd1d48 100644 (file)
@@ -102,9 +102,6 @@ mapfactor_wr_init(const QString& fname)
   oqfile->open(QIODevice::WriteOnly | QIODevice::Text);
   writer = new gpsbabel::XmlStreamWriter(oqfile);
 
-  // Override the "UTF-8-XML" with ... the default.
-  writer->setCodec("utf-8");
-
   writer->setAutoFormatting(true);
   writer->setAutoFormattingIndent(2);
   writer->writeStartDocument();